package com.mybatis.moudles.test;


import lombok.Data;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testcase1 {
/*

    @Test
    @Parameters({"firstname","lastname"})
    public void testA(String fn,String ln){
        System.out.println("hhahahhhah ");
        System.out.println(fn);
        System.out.println(ln);
        System.out.println(Thread.currentThread());
    }
*/

    @DataProvider(name="data")
    public Object [][] DataProviders(){
        Object[][] obj =new Object[][]{{"A","A1"},{"B","B1"},{"C","C1"}};
        return obj;
    }

    @Test(dataProvider = "data")
    public void testB(String data1,String data2){
        System.out.println(data1);
        System.out.println(data2);
        System.out.println(Thread.currentThread());
    }

    @Test
    public void test1(){
        Assert.assertEquals(1,2);
    }

    @Test
    public void test2(){
        Assert.assertEquals(1,1);
    }

    @Test
    public void test3(){
        Assert.assertEquals("aaa","aaa");
    }


}
